import {observe} from "./observe.js"
import Watcher from "./Watcher.js"
var a={
    b:{
        c:3
    },
    d:[1,2,4]
}
observe(a)
new Watcher(a,"b.c",()=>{
    console.log("监听到了c");
})
new Watcher(a,"d",()=>{
    console.log("监听到了d");
})
console.log(a.b.c)
a.b.c={};
a.d.push(7);
console.log(a.d)



